正在查看 1 结果:1-1 (共 1 个结果)
-
搜索结果
-
其实这个并不是必要的,只是刚直接输入我们的 Mautic 安装域名访问的时候发现居然是 404 ,弄得我还以为是莫名其妙的又坏了。
由于我们是用的 Nginx 环境,所以需要编辑 Nginx 的网站配置文件,加入下面这一段就可以直接去掉
index.php
,短点儿也好,方便。# redirect index.php to root rewrite ^/index.php/(.*) /$1 permanent; ####################################### ## Start Mautic Specific config ##### ####################################### # redirect some entire folders rewrite ^/(vendor|translations|build)/.* /index.php break; location / { # First attempt to serve request as file, then # as directory, then fall back to index.html # one option: try_files $uri $uri/ /index.php$is_args$args; try_files $uri /index.php$is_args$args; # Uncomment to enable naxsi on this location # include /etc/nginx/naxsi.rules }
正在查看 1 结果:1-1 (共 1 个结果)
未找到对应子版块?请直接在 [疑难杂症] 版块中发帖提问。